package org.strangewt.demo.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.part.ViewPart;
import org.strangewt.jface.viewers.CompositeViewer;

public class ViewContent extends ViewPart {
	public static final String ID = "org.strangewt.demo.view.viewcontent";
	
	private CompositeViewer compViewer;
	
	public ViewContent() {
	}

	@Override
	public void createPartControl(Composite parent) {
		compViewer = new CompositeViewer(parent, SWT.NONE);
	}

	@Override
	public void setFocus() {

	}
	
	public void showComposite(Class clazz) {
		compViewer.createDetailComposite(clazz);
	}

}
